class Script:
    
    def inputfile(self, filepath):
        for line in open('text.txt', 'r'):
            print line
            
    def __init__(self, text, script_index, attr, masterindex, subindex):
        self.text = text
        self.script_index = script_index
        self.attr = attr
        self.masterindex = masterindex
        self.subindex = subindex

class LineWord:
    def __init__(self, word, masterindex, subindex):
        self.word = word
        self.masterindex = masterindex
        self.subindex = subindex